package com.feri.project.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Order {

    private Integer id;


    private String orderid;


    private String goodsid;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date ordertime;


    private Double goodsprice;


    private Integer goodsnum;


    private String userid;


    private Integer flag;


    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_order.id
     *
     * @param id the value for t_order.id
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_order.orderId
     *
     * @return the value of t_order.orderId
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public String getOrderid() {
        return orderid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_order.orderId
     *
     * @param orderid the value for t_order.orderId
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public void setOrderid(String orderid) {
        this.orderid = orderid == null ? null : orderid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_order.goodsId
     *
     * @return the value of t_order.goodsId
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public String getGoodsid() {
        return goodsid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_order.goodsId
     *
     * @param goodsid the value for t_order.goodsId
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public void setGoodsid(String goodsid) {
        this.goodsid = goodsid == null ? null : goodsid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_order.orderTime
     *
     * @return the value of t_order.orderTime
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public Date getOrdertime() {
        return ordertime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_order.orderTime
     *
     * @param ordertime the value for t_order.orderTime
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_order.goodsPrice
     *
     * @return the value of t_order.goodsPrice
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public Double getGoodsprice() {
        return goodsprice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_order.goodsPrice
     *
     * @param goodsprice the value for t_order.goodsPrice
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public void setGoodsprice(Double goodsprice) {
        this.goodsprice = goodsprice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_order.goodsNum
     *
     * @return the value of t_order.goodsNum
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public Integer getGoodsnum() {
        return goodsnum;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_order.goodsNum
     *
     * @param goodsnum the value for t_order.goodsNum
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public void setGoodsnum(Integer goodsnum) {
        this.goodsnum = goodsnum;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_order.userid
     *
     * @return the value of t_order.userid
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public String getUserid() {
        return userid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_order.userid
     *
     * @param userid the value for t_order.userid
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public void setUserid(String userid) {
        this.userid = userid == null ? null : userid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_order.flag
     *
     * @return the value of t_order.flag
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public Integer getFlag() {
        return flag;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_order.flag
     *
     * @param flag the value for t_order.flag
     *
     * @mbggenerated Mon Mar 06 14:15:55 CST 2023
     */
    public void setFlag(Integer flag) {
        this.flag = flag;
    }
}